using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using Frontends.Controls;
using Core.Items;


namespace Frontends.Controller
{
    public class ToDoItemController
    {
        public ToDoItemControl _control;
        private ToDoItem _current;

        public ToDoItemController(ToDoItemControl control)
        {
            _control = control;
        }

        public void Display(ToDoItem item)
        {
            _current = item;
            _control._tbSubject.Text = item.Subject;
            _control._tbDescription.Text = item.Description;
            _control._dtpDueDate.Value = item.DueDate;
        }
    }
}
